<template>
  <div class="about">
    <el-page-header title="返回" content="关于我们" @back="goBack" />
    <el-card class="content-card">
      <div class="header-section">
        <img src="@/assets/logo.svg" alt="文学鉴赏平台Logo" class="logo" />
        <h1>关于我们</h1>
      </div>
      <p class="intro">文学鉴赏平台是一个专注于文学作品分享和讨论的平台，致力于为文学爱好者提供一个交流与学习的空间。</p>
      
      <div class="mission">
        <h2>我们的使命</h2>
        <p>传承和弘扬优秀文学作品，促进文学爱好者之间的交流与互动，推动文学文化的传播与发展。</p>
      </div>
      
      <div class="features">
        <h2>平台特色</h2>
        <el-row :gutter="30">
          <el-col :span="12" v-for="feature in platformFeatures" :key="feature.title">
            <el-card class="feature-card" shadow="hover">
              <div class="feature-content">
                <el-icon class="feature-icon" :size="24">
                  <component :is="feature.icon" />
                </el-icon>
                <div>
                  <h3>{{ feature.title }}</h3>
                  <p>{{ feature.description }}</p>
                </div>
              </div>
            </el-card>
          </el-col>
        </el-row>
      </div>
      
      <div class="literary-philosophy">
        <h2>文学理念</h2>
        <div class="philosophy-content">
          <p>我们相信文学是人类智慧的结晶，是情感与思想的载体。通过阅读文学作品，我们可以跨越时空的界限，与古今中外的文人墨客对话，感受他们的喜怒哀乐，体悟人生的真谛。</p>
          <p>在文学鉴赏平台上，我们鼓励用户：</p>
          <ul>
            <li>深度阅读，用心体会每部作品的独特魅力</li>
            <li>积极分享，交流各自的阅读感受和见解</li>
            <li>尊重差异，包容不同的观点和解读方式</li>
            <li>持续学习，不断提升文学素养和审美能力</li>
          </ul>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'

const router = useRouter()

const platformFeatures = [
  {
    icon: 'Reading',
    title: '丰富作品库',
    description: '收录了众多经典和现代文学作品，涵盖诗歌、散文、小说等多种体裁'
  },
  {
    icon: 'Comment',
    title: '互动交流',
    description: '提供评论和讨论功能，与其他文学爱好者分享您的观点和见解'
  },
  {
    icon: 'Star',
    title: '个性化推荐',
    description: '根据您的阅读偏好，智能推荐您可能感兴趣的文学作品'
  },
  {
    icon: 'Collection',
    title: '收藏管理',
    description: '方便地收藏喜欢的作品，建立个人专属的文学书架'
  }
]

const goBack = () => {
  router.go(-1)
}
</script>

<style scoped>
.about {
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.el-page-header {
  margin-bottom: 20px;
}

.content-card {
  background: linear-gradient(135deg, var(--feature-bg) 0%, var(--bg-color) 100%);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.content-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.header-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.logo {
  width: 60px;
  height: 60px;
}

.intro {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: center;
}

.mission, .features, .literary-philosophy {
  margin-bottom: 30px;
  padding: 20px;
  background-color: var(--feature-bg);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.mission h2, .features h2, .literary-philosophy h2 {
  color: var(--text-color);
  margin-top: 0;
}

.feature-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.feature-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-icon {
  color: #409eff;
  margin-top: 3px;
}

.feature-card h3 {
  margin: 0 0 10px 0;
  color: var(--text-color);
}

.feature-card p {
  margin: 0;
  color: var(--text-color);
  font-size: 0.95em;
  line-height: 1.5;
}

.literary-philosophy p {
  line-height: 1.7;
  margin-bottom: 15px;
}

.literary-philosophy ul {
  padding-left: 20px;
}

.literary-philosophy li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.el-col{
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .header-section {
    flex-direction: column;
  }
  
  .feature-card {
    max-width: 100%;
  }
  
  .feature-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

:deep(.el-page-header__content) {
  color: var(--text-color);
  font-weight: 500;
}

:deep(.el-page-header__title) {
  color: var(--text-color);
  opacity: 0.8;
}

/* 确保在暗色主题下文字可见 */
[data-theme="dark"] .mission, 
[data-theme="dark"] .header-section, 
[data-theme="dark"] .intro,
[data-theme="dark"] .features, 
[data-theme="dark"] .literary-philosophy {
  color: var(--text-color);
}
</style>